home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC Gamer (Italian) 30
/
PC Gamer IT CD 30 1-2.iso
/
MOTS
/
GAMEDATA
/
RESOURCE
/
JKMRES.GOO
/
cog_item_heavy_explosive.cog
< prev
next >
Wrap
Text File
|
1998-02-25
|
1KB
|
61 lines
# Jedi Knight Missions Cog Script
#
# ITEM_HEAVY_EXPLOSIVE.COG
#
# INVENTORY script - Heavy Explosive
# Bin 53
#
# [YB] + [RF] + [TNT]
#
# (C) 1997 LucasArts Entertainment Co. All Rights Reserved
symbols
message activated
message user0
message user1
sound keysound=BactaUse01.WAV
thing player local
template explosive_tpl=EC.3do local
int ready=0 local
int explosive local
cog endlevel local
end
code
activated:
endlevel=GetMasterCog();
// Print("Invcog sending user1 message to endlevel. Activated.");
SendMessage(endlevel, user1);
Return;
user1:
If(ready) return;
ready=1;
player=GetLocalPlayerThing();
// Print("Invcog received message from endlevel.");
// Print("Invcog says: Player is on dome!");
jkPrintUNIString(player, 273); // "Heavy Explosive"
PlaySoundLocal(keysound, 1.0, 0.0, 0);
PlayMode(player, 16);
Sleep(1.0);
SendMessage(endlevel, user2);
// Print("invcog sending user2 message to endlevel");
Return;
end